package cn.hxlc.tie.demo.core.util;/*
 @author rui
 @date 2021/6/25 --11:28
*/

import cn.hxlc.tie.libs.context.auth.LoginContext;

public class UserUntil {
    public static Long getUserid(){
        Long accountId = null;
        try {
            accountId = LoginContext.me().getLoginUser().getUserId();
        } catch (Exception e) {
            accountId = -1L;
        }
        return accountId;
    }
}
